#ifndef __XTEST_H
#define __XTEST_H

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

// TODO: Change the name of this class to something that makes sense.
class XTest : public CppUnit::TestFixture
{
	public:

		void setUp()
		{
			i = 0;
		}

		void tearDown()
		{
		}

		// TODO: Add your test functions here. They can be named
		// anything, but they have to correspond correctly to the
		// constructor of the TestCaller class associated with using
		// this fixture.
		
		CPPUNIT_TEST_SUITE( XTest );
		CPPUNIT_TEST( testValue );
		CPPUNIT_TEST( testFail );
		CPPUNIT_TEST_SUITE_END();

		void testValue()
		{
			CPPUNIT_ASSERT( i == 0 );
		}

		void testFail()
		{
			CPPUNIT_ASSERT( i == 1 );
		}

	protected:
		// TODO: Add the class/data you will test here.
		int i;

};

// This basically tells CppUnit that this class should be added as a suite.
// Although it's not technically a suite object, it implements the Test
// interface.
CPPUNIT_TEST_SUITE_REGISTRATION( XTest );

#endif
